﻿@model PaginaWeb.Models.MiProducto

@{
    ViewBag.Title = "Delete";
    Layout = "~/Views/Shared/_AdministradorLayout.cshtml";
}

<h2>Borrar</h2>

<h3>¿Esta Seguro que queres borrar este producto?</h3>
<fieldset>
    <legend>MiProducto</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.nombre)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.nombre)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.modelo)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.modelo)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.marca)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.marca.nombre)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.precio)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.precio)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.descripcion)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.descripcion)
    </div>
    <div class="display-label">
         Foto
    </div>
    <div class="display-field">
        <img src="@Url.Content("~/Content/Imagenes2/" + Model.id + ".jpg")" height="150" width="150"/>
    </div>

</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Borrar" />
        <button type="button" class="btn btn-info">
        @Html.ActionLink("Volver a la lista", "Index")
        </button>
    </p>
}

